package com.zwk.gulimall.product.annotation;

import java.lang.annotation.*;

/**
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
@Inherited
public @interface RelationMethod {
    Pattern pattern() default Pattern.UPDATE;

    /**
     * 方法关联的实体
     */
    Class value() default Object.class;
    public static enum  Pattern{
        UPDATE,
        SAVE,
        GET
    }
}
